import 'package:flutter/material.dart';
import 'package:flutterprojectportal/page/test_page.dart';
import 'package:flutterprojectportal/util/navigator_util.dart';

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("HomePage"),
      ),
      body: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          FlatButton(
            onPressed: () {
              NavigatorUtil.push(context, TestPage());
            },
            child: Text("test stream"),
            textColor: Colors.blue,
          ),
        ],
      ),
    );
  }
}
